package net.model.factory;

public abstract class PizzaFactory {

	public void orderPizza(String type) {
		
		IPizza pizza = createPizza(type);
		if (null==pizza)
			return;
		
		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();
	}
	
	public abstract IPizza createPizza(String type);
}
